import { getMyCustomList } from '@/api/my'
const ERR_OK = 200
export default {
  data () {
    return {
      customList: []
    }
  },
  created () {
    this._getMyCustomList()
  },
  methods: {
    _getMyCustomList () {
      return getMyCustomList()
        .then(res => {
          if (res.code === ERR_OK) {
            this.customList = res.data.data
            return Promise.resolve()
          }
        })
        .catch(err => {
          console.log(err)
        })
    }
  }
}
